﻿<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8" />
	<meta name="MobileOptimized" content="240" />
	<meta name="format-detection" content="telephone=no">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
	<meta name="apple-mobile-web-app-capable" content="yes" />
	<meta content="black" name="apple-mobile-web-app-status-bar-style" />
	<title>账目信息</title>
	<!-- Bootstrap -->
	<link href="/static/weixin/css/bootstrap.min.css" rel="stylesheet">
	<link href="/static/weixin/css/style.css" rel="stylesheet">

	<script src="/static/weixin/js/jquery.min.js" type="text/javascript"></script>
	<link rel="stylesheet" href="/static/weixin/css/sub.css" />
	<script type="text/javascript">
      $(function () {
        $('.tab ul.menu li').click(function () {
          //获得当前被点击的素索引值
          var Index = $(this).index();
          //给菜单添加选择样式
          $(this).addClass('active').siblings().removeClass('active');
          //显示对应的div
          $('.tab').children('div').eq(Index).show().siblings('div').hide();

        });
      });
	</script>
</head>
<body aria-atomic="False" style="background: #ededed;">
<section class="n-tabs">
	<h1 class="logo">
		<a href='javascript:history.go(-1)' class="back-off"><span class="glyphicon glyphicon-chevron-left"></span></a>
		<span style="font-size:1.5em">账目信息:{{controller.user.username}}</span>
	</h1>
</section>

<div class="Content">
	<div class="account">
		<div class="tab">
			<section class="n-tabs2">
				<ul class="menu">
					<li class="active">销售合同</li>
					<li>公司余额</li>
					<li>订单明细</li>
					<li>发货明细</li>
					<li>收款明细</li>
					<li>发票明细</li>
				</ul>
			</section>
			<div class="con1">
				<div class="subAbout">
					<span>| 销售合同</span>
					<div class="col-md-12">
						<h4 class="page-header margin-top-0"><i class="fa fa-reorder fa-lg text-default"></i>
							{{controller.meta_title}}<!--<button class="btn btn-primary btn-xs pull-right" data-toggle="modal" data-target=".add-addr-dialog">添加新地址</button>-->
						</h4>
						<!--<form role="form" method="get" action="/center/reconciliation/contract" class="form-horizontal form-info">
                            <div class="form-group">
                                <div class="col-md-2">
                                    <input type="text" placeholder="请输入订单号" class="form-control" name="order_no" value="{{order_no}}">
                                </div>
                                <div class="col-md-2">
                                    <input type="text" placeholder="请输入产品名称" class="form-control" name="title" value="{{title}}">
                                </div>
                                <div class="col-md-2">
                                    <select type="text" placeholder="请选择状态" class="form-control" name="status">
                                        <option value="" {%if status==""%}selected{%endif%}>全部</option>
                                        <option value="2" {%if status=="2"%}selected{%endif%}>等待审核</option>
                                        <option value="3" {%if status=="3"%}selected{%endif%}>已审核</option>
                                        <option value="6" {%if status=="6"%}selected{%endif%}>已作废</option>
                                        <option value="4" {%if status=="4"%}selected{%endif%}>已完成</option>
                                    </select>
                                </div>
                                <div class="col-md-2">
                                    <button class="btn btn-primary" type="submit" > 查询 </button>
                                    <a href="/center/reconciliation/order" class="btn btn-primary" > 重置 </a>
                                </div>
                            </div>
                        </form>-->
						<div class="table-responsive">
							<!--<table class="table  table-striped table-vertical-middle">
                                <thead>
                                <tr>
                                    <th >订单单号</th>
                                    <th>产品名称</th>
                                    <th>产品编号</th>
                                    <th>规格型号</th>
                                    <th>订单数量</th>
                                    &lt;!&ndash;<th>单价</th>
                                    <th>金额</th>&ndash;&gt;
                                    <th>订单状态</th>
                                    &lt;!&ndash;<th>操作</th>&ndash;&gt;
                                </tr>
                                </thead>
                                <tbody>
                                {% for item in list %}
                                {% for v in item.goods%}
                                <tr>
                                    <td >{{item.order_no}}</td>
                                    <td>{{v.title}}</td>
                                    <td>{{v.product_id}}</td>
                                    <td>{{v.type}}</td>
                                    <td>{{v.qty}}</td>
                                    &lt;!&ndash;<td>{{v.unit_price}}</td>
                                    <td>{{v.price}}</td>&ndash;&gt;
                                    <td>
                                        {%if item.status ==2 %}<span class="text-muted">等待审核 </span>{%elif item.status ==3%}<span class="text-success">已审核</span>{%elif item.status ==6%}<del>已作废</del>{%elif item.status == 4%}<span class="text-primary">已完成</span>{%endif%}
                                    </td>
                                    &lt;!&ndash;<td>
                                        <a href="contractsee?id={{item.id}}" data-toggle="ajaxModal"><i class="fa fa-eye"></i> 查看详情</a>
                                    </td>&ndash;&gt;
                                </tr>
                                {% endfor %}
                                {% else %}
                                <tr>
                                    <td colspan="11">
                                        <div class="alert alert-warning alert-block">
                                            <button data-dismiss="alert" class="close" type="button">×</button>
                                            <p>暂无订单信息！</p>
                                        </div>
                                    </td>
                                </tr>
                                {% endfor %}
                                </tbody>
                            </table>-->
							<iframe src="http://218.24.153.126:8089/WebReport/ReportServer?formlet=HJ%2Fydd%2F010_MH_XSHT.frm&user_code={{controller.user.user_code}}" height="428px" width="100%"></iframe>
						</div>
						<!-- PAGINATION -->
						<!--<div class="text-right">
                            &lt;!&ndash; Pagination Default &ndash;&gt;
                            {{pagination | safe}}
                            &lt;!&ndash; /Pagination Default &ndash;&gt;
                        </div>-->
						<!-- /PAGINATION -->
					</div>


				</div>
				<div class="cls"></div>
			</div>
			<div class="con2">
				<div class="subAbout">
					<span>| 公司余额</span>
					<div class="col-md-12">
						<div class="col-md-6">
							<h4 class="page-header margin-top-0"><i class="fa fa-reorder fa-lg text-default"></i>
								{{controller.meta_title}}
							</h4>
						</div>
						<!--<div class="col-md-6 text-right">
                            <h4 class="page-header margin-top-0 margin-right-10">总余额：<span style="color: #ff0000">{{yecount}}</span></h4>
                        </div>-->
						<!--<form role="form" method="post" class="form-horizontal form-info">
                            <div class="form-group">
                                <div class="col-md-12">

                                </div>
                            </div>
                        </form>
                        <div class="table-responsive">
                            <table class="table table-striped table-vertical-middle">
                                <thead>
                                <tr>
                                    <th>往来公司</th>
                                    <th>余额</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                {% for item in yelist %}
                                <tr>
                                    <td>{{item.gsmc}}</td>
                                    <td>{{item.ye}}</td>
                                    <td><a class="link" href="companydetail?gs={{item.pk_org}}"><i class="fa fa-eye"></i>  {% if controller.user.groupid == 9 %}收款明细{% elif controller.user.groupid == 10 %}付款明细{% endif %}</a></td>
                                </tr>
                                {% endfor %}
                                </tbody>
                            </table>
                        </div>-->
						<div class="col-md-12">
							<iframe src="http://218.24.153.126:8089/WebReport/ReportServer?formlet=HJ%2Fmh%2F007_MH_KHZMXX.frm&user_pk={{controller.user.user_pk}}" height="428px" width="100%"></iframe>
						</div>
					</div>
				</div>
			</div>
			<div class="con3">
				<div class="subAbout">
					<span>| 订单明细</span>
					<div class="col-md-12">
						<h4 class="page-header margin-top-0"><i class="fa fa-reorder fa-lg text-default"></i>
							{{controller.meta_title}}<!--<button class="btn btn-primary btn-xs pull-right" data-toggle="modal" data-target=".add-addr-dialog">添加新地址</button>-->
						</h4>
						<!--<form role="form" method="post" class="form-horizontal form-info">
                            <div class="form-group">
                                <div class="col-md-4">
                                    <input type="text" placeholder="请输入关键字" class="form-control" name="real_name">
                                </div>
                                <div class="col-md-4">
                                    <button class="btn btn-primary ajax-post" target-form="form-info" type="submit" > 查询 </button>
                                </div>
                            </div>
                        </form>-->
						<div class="table-responsive">
							<!--<table class="table  table-striped table-vertical-middle">
                                <thead>
                                <tr>
                                    <th >单号</th>
                                    <th>公司</th>
                                    <th>总数量</th>
                                    <th>总价格</th>
                                    <th>日期</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                {% for item in jslist %}
                                <tr>
                                    <td >{{item.vbillcode}}</td>
                                    <td>{{item.name}}</td>
                                    <td>{{item.ntotalnum}}</td>
                                    <td>{{item.ntotalorigmny}}</td>
                                    <td>{{item.dbilldate}}</td>
                                    <td><a href="ordersee?id={{item.csaleorderid}}" data-toggle="ajaxModal"><i class="fa fa-eye"></i> 查看详情</a></td>
                                </tr>
                                {% endfor %}
                                </tbody>
                            </table>-->
							<iframe src="http://218.24.153.126:8089/WebReport/ReportServer?formlet=HJ%2Fydd%2F011_MH_XSDD.frm&user_pk={{controller.user.user_pk}}" height="428px" width="100%"></iframe>
						</div>
						<!-- PAGINATION -->
						<!--<div class="text-right">
                            &lt;!&ndash; Pagination Default &ndash;&gt;
                            {{pagination | safe}}
                            &lt;!&ndash; /Pagination Default &ndash;&gt;
                        </div>-->
						<!-- /PAGINATION -->
					</div>

				</div>
			</div>
			<div class="con4">
				<div class="subAbout">
					<span>| 发货明细</span>
					<div class="col-md-12">
						<h4 class="page-header margin-top-0"><i class="fa fa-reorder fa-lg text-default"></i>
							{{controller.meta_title}}<!--<button class="btn btn-primary btn-xs pull-right" data-toggle="modal" data-target=".add-addr-dialog">添加新地址</button>-->
						</h4>
						<!--<form role="form" method="post" class="form-horizontal form-info">
                            <div class="form-group">
                                <div class="col-md-4">
                                    <input type="text" placeholder="请输入关键字" class="form-control" name="real_name">
                                </div>
                                <div class="col-md-4">
                                    <button class="btn btn-primary ajax-post" target-form="form-info" type="submit" > 查询 </button>
                                </div>
                            </div>
                        </form>-->
						<div class="table-responsive">
							<!--<table class="table  table-striped table-vertical-middle">
                                <thead>
                                <tr>
                                    <th >单号</th>
                                    <th>公司</th>
                                    <th>总数量</th>
                                    <th>总价格</th>
                                    <th>日期</th>
                                    <th>备注信息</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                {% for item in jslist %}
                                <tr>
                                    <td >{{item.vbillcode}}</td>
                                    <td>{{item.name}}</td>
                                    <td>{{item.ntotalnum}}</td>
                                    <td>{{item.ntaxmny}}</td>
                                    <td>{{item.dbilldate}}</td>
                                    <td>{{item.vnote}}</td>
                                    <td><a href="settlementdetail?id={{item.cgeneralhid}}" data-toggle="ajaxModal"><i class="fa fa-eye"></i> 查看详情</a></td>
                                </tr>
                                {% endfor %}
                                </tbody>
                            </table>-->
							<iframe src="http://218.24.153.126:8089/WebReport/ReportServer?formlet=HJ%2Fydd%2F009_MH_KHJSMX.frm&user_pk={{controller.user.user_pk}}" height="428px" width="100%"></iframe>
						</div>
						{#<!-- PAGINATION -->
						<div class="text-right">
							<!-- Pagination Default -->
							{{pagination | safe}}
							<!-- /Pagination Default -->
						</div>
						<!-- /PAGINATION -->#}
					</div>

				</div>
			</div>
			<div class="con5">
				<div class="subAbout">
					<span>| 收款明细</span>
					<div class="col-md-12">
						<h4 class="page-header margin-top-0"><i class="fa fa-reorder fa-lg text-default"></i>
							{{controller.meta_title}}<!--<button class="btn btn-primary btn-xs pull-right" data-toggle="modal" data-target=".add-addr-dialog">添加新地址</button>-->
						</h4>
						<!--<form role="form" method="post" class="form-horizontal form-info">
                            <div class="form-group">
                                <div class="col-md-4">
                                    <input type="text" placeholder="请输入关键字" class="form-control" name="real_name">
                                </div>
                                <div class="col-md-4">
                                    <button class="btn btn-primary ajax-post" target-form="form-info" type="submit" > 查询 </button>
                                </div>
                            </div>
                        </form>-->
						<div class="table-responsive">
							<!--<table class="table  table-striped table-vertical-middle">
                                <thead>
                                <tr>
                                    <th >订单单号</th>
                                    <th>产品名称</th>
                                    <th>产品编号</th>
                                    <th>规格型号</th>
                                    <th>单位</th>
                                    <th>订单数量</th>
                                    <th>单价</th>
                                    <th>金额</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr>
                                    <td >201801200035</td>
                                    <td>三级螺纹钢</td>
                                    <td>HRB400</td>
                                    <td>Φ10*12</td>
                                    <td>吨</td>
                                    <td>18</td>
                                    <td>4000</td>
                                    <td>72000</td>
                                </tr>
                                <tr>
                                    <td >201801200035</td>
                                    <td>三级螺纹钢</td>
                                    <td>HRB400</td>
                                    <td>Φ10*12</td>
                                    <td>吨</td>
                                    <td>18</td>
                                    <td>4000</td>
                                    <td>72000</td>
                                </tr>
                                <tr>
                                    <td >201801200035</td>
                                    <td>三级螺纹钢</td>
                                    <td>HRB400</td>
                                    <td>Φ10*12</td>
                                    <td>吨</td>
                                    <td>18</td>
                                    <td>4000</td>
                                    <td>72000</td>
                                </tr>
                                <tr>
                                    <td >201801200035</td>
                                    <td>三级螺纹钢</td>
                                    <td>HRB400</td>
                                    <td>Φ10*12</td>
                                    <td>吨</td>
                                    <td>18</td>
                                    <td>4000</td>
                                    <td>72000</td>
                                </tr>
                                </tbody>
                            </table>-->
							<iframe src="http://218.24.153.126:8089/WebReport/ReportServer?formlet=HJ%2Fydd%2F016_MH_KHFKMX.frm&user_pk={{controller.user.user_pk}}" height="428px" width="100%"></iframe>
						</div>
						{#<!-- PAGINATION -->
						<div class="text-right">
							<!-- Pagination Default -->
							<!--{{pagination | safe}}-->
							<ul class="pagination">
								<li><a href="#">&laquo;</a></li>
								<li><a href="#">1</a></li>
								<li><a href="#">2</a></li>
								<li><a href="#">3</a></li>
								<li><a href="#">4</a></li>
								<li><a href="#">5</a></li>
								<li><a href="#">&raquo;</a></li>
							</ul>
							<!-- /Pagination Default -->
						</div>
						<!-- /PAGINATION -->#}
					</div>

				</div>
			</div>
			<div class="con6">
				<div class="subAbout">
					<span>| 发票明细</span>
					<div class="col-md-12">
						<h4 class="page-header margin-top-0"><i class="fa fa-reorder fa-lg text-default"></i>
							{{controller.meta_title}}<!--<button class="btn btn-primary btn-xs pull-right" data-toggle="modal" data-target=".add-addr-dialog">添加新地址</button>-->
						</h4>
						<!--<form role="form" method="post" class="form-horizontal form-info">
                            <div class="form-group">
                                <div class="col-md-4">
                                    <input type="text" placeholder="请输入关键字" class="form-control" name="real_name">
                                </div>
                                <div class="col-md-4">
                                    <button class="btn btn-primary ajax-post" target-form="form-info" type="submit" > 查询 </button>
                                </div>
                            </div>
                        </form>-->
						<div class="table-responsive">
							<!--<table class="table  table-striped table-vertical-middle">
                                <thead>
                                <tr>
                                    <th >单号</th>
                                    <th>公司</th>
                                    <th>总数量</th>
                                    <th>总价格</th>
                                    <th>日期</th>
                                    <th>备注信息</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                {% for item in list %}
                                <tr>
                                    <td >{{item.vbillcode}}</td>
                                    <td>{{item.name}}</td>
                                    <td>{{item.ntotalastnum}}</td>
                                    <td>{{item.ntotalorigmny}}</td>
                                    <td>{{item.dbilldate}}</td>
                                    <td>{{item.vnote}}</td>
                                    <td><a href="invoicedetail?id={{item.csaleinvoiceid}}" data-toggle="ajaxModal"><i class="fa fa-eye"></i> 查看详情</a></td>
                                </tr>
                                {% endfor %}
                                </tbody>
                            </table>-->
							<iframe src="http://218.24.153.126:8089/WebReport/ReportServer?formlet=HJ%2Fydd%2F012_MX_FPMX.frm&user_pk={{controller.user.user_pk}}" height="428px" width="100%"></iframe>
						</div>
						<!-- PAGINATION -->
						{#<div class="text-right">
						<!-- Pagination Default -->
						{{pagination | safe}}
						<!-- /Pagination Default -->
					</div>#}
						<!-- /PAGINATION -->
					</div>

				</div>
			</div>
		</div>
	</div>
</div>
<div class="FootbqK"></div>
{% include "./inc_base.html" %}
</body>
</html>
